//
//  CTMediator+TableViewCellAction.m
//  atXiaoGeBClient
//
//  Created by Linyu Niu on 20/04/2018.
//  Copyright © 2018 Linyu Niu. All rights reserved.
//

#import "CTMediator+TableViewCellAction.h"


NSString * const  kCTMediatorTableViewCellTarget                                                      = @"TableViewCell";
NSString * const  kCTMediatorCreateMyOrderCellAction                                                  = @"createMyOrderCell";
NSString * const  kCTMediatorCreateInReceivingCellAction                                              = @"createInReceivingCell";



@implementation CTMediator(TableViewCellAction)


-(UITableViewCell *)createInReceivingCell:(NSDictionary *)data index:(NSIndexPath *)index{
    NSMutableDictionary * dic = [NSMutableDictionary dictionary];
    [dic setNLYObjectForKey:data forKey:@"data"];
    [dic setNLYObjectForKey:index forKey:@"index"];
    return (UITableViewCell *)[self performTarget:kCTMediatorTableViewCellTarget action:kCTMediatorCreateInReceivingCellAction params:dic shouldCacheTarget:NO];
}
-(UITableViewCell *)createMyOrderCell:(NSDictionary *)data index:(NSIndexPath *)index{
    NSMutableDictionary * dic = [NSMutableDictionary dictionary];
    [dic setNLYObjectForKey:data forKey:@"data"];
    [dic setNLYObjectForKey:index forKey:@"index"];
    return (UITableViewCell *)[self performTarget:kCTMediatorTableViewCellTarget action:kCTMediatorCreateMyOrderCellAction params:dic shouldCacheTarget:NO];
}
@end
